package together.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import together.dao.ActivityDao;
import together.dto.AMemberDto;
import together.dto.ActivityDto;
import together.dto.MemberDto;

@Service
public class ActivityServiceImpl implements ActivityService {

   @Autowired
   private ActivityDao activityDaoImpl;

   @Override
   public int insertActivity(ActivityDto activity) {
      // TODO Auto-generated method stub
      return 0;
   }

   @Override
   public ActivityDto selectActDetail(int actId) {
      // TODO Auto-generated method stub
      ActivityDto activity = new ActivityDto();
      activity = activityDaoImpl.selectActDetail(actId);
      activity.setComment(activityDaoImpl.selectActComment(actId));
      activity.setPartyMem(activityDaoImpl.selectActEnter(actId));
      return activity;
   }

   @Override
   public int insertActMember(AMemberDto member) {
      return activityDaoImpl.insertActMember(member);
   }

   @Override
   public int deleteActMember(AMemberDto member) {
      return activityDaoImpl.deleteActMember(member);
   }

   @Override
   public List<ActivityDto> selectActComment(int actId) {
      // TODO Auto-generated method stub
      return null;
   }

   @Override
   public MemberDto selectActMaster(int actId) {
      // TODO Auto-generated method stub
      return null;
   }

   @Override
   public List<MemberDto> selectActEnter(int actId) {
      // TODO Auto-generated method stub
      return null;
   }

   @Override
   public int insertActComment(int actId, int userId, String comment) {
	   return activityDaoImpl.insertActComment(actId, userId, comment);	
   }

   @Override
   public int deleteActComment(int actId, int commentId) {
	// TODO Auto-generated method stub
	return 0;
}
   
   
   
}